package com.example.statemachine.machine.enums;

/**
 * @author jianwei.wang
 * @date 2019/5/8 18:08
 **/
public enum EnumFsmStatus {

    //暂存
    TEMP_STORAGE,
    //审核中
    IS_REVIEW,
    //已反审
    ANTI_REVIEWED,
    //已审核
    REVIEWED,
    //已作废
    CANCELED;


    public static EnumFsmStatus getFsmStatus(int ordinal){
        for (EnumFsmStatus fsmStatus : EnumFsmStatus.values()) {
            if (fsmStatus.ordinal() == ordinal){
                return fsmStatus;
            }
        }
        return null;
    }

}
